module.exports = {
  height: {
    type: String,
    default: '600px',
    name: '图表容器高度',
    filedType: 'string'
  },
  width: {
    type: String,
    default: '1000px',
    name: '图表容器宽度',
    filedType: 'string'
  },

  mapKey: {
    type: String,
    default: '4daa78d371fcbec403897e8ccc0c408c',
    name: '高德地图Key',
    filedType: 'string'
  },
  mapPlugins: {
    type: String,
    default: '',
    name: '高德地图插件',
    nameTip: '插件',
    filedType: 'string'
  },

  mapUIPlugins: {
    type: String,
    default: 'geo/DistrictExplorer,misc/PointSimplifier',
    name: '高德地图UI插件',
    nameTip: '插件',
    filedType: 'string'
  },
  mapStyle: {
    type: String,
    default: 'amap://styles/563ccfbe13786e73a2fcd9340a89a6d6',
    name: '高德地图样式',
    filedType: 'string'
  },
  mapCenter: {
    type: String,
    default: '116.30946, 39.937629',
    name: '高德地图中心位置',
    filedType: 'string'
  },
  mapZoom: {
    type: String,
    default: '9',
    name: '高德地图层级',
    filedType: 'string'
  },

  bgColor: {
    type: String,
    default: '#031532',
    name: '背景颜色',
    filedType: 'color'
  },

  colors: {
    type: Array,
    default () {
      return [
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff',
        '#0049ff'
      ]
    },
    name: '调色板',
    nameTip: '图表按此处指定的值循环取色',
    filedType: 'list',
    subType: 'color',
    subDefault: '#2bd3bd',
    max: 30
  },
  data: {
    type: Array,
    default () {
      return [
        {
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "name": "长沙市第一中学1",
          "value": [112.993188,28.289105, 8, 999]
        }, {
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "name": "长沙市第一中学2",
          "value": [113.062178,28.370502, 8, 999]
        }, {
          "name": "长沙市第一中学3",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.71033,28.282488, 8, 999]
        }, {
          "name": "长沙市第一中学4",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [113.089199,28.051168, 8, 999]
        }, {
          "name": "长沙市第一中学5",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.621793,28.260601, 8, 999]
        }, {
          "name": "长沙市第一中学6",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.826462,28.345072, 8, 999]
        }, {
          "name": "长沙市第一中学7",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [113.227753,28.193383, 8, 999]
        }, {
          "name": "长沙市第一中学8",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [113.071376,28.112869, 8, 999]
        }, {
          "name": "长沙市第一中学9",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [113.081437,28.250419, 8, 999]
        }, {
          "name": "长沙市第一中学10",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.628548,28.27927, 8, 999]
        }, {
          "name": "长沙市第一中学11",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.942622,28.161777, 8, 999]
        }, {
          "name": "长沙市第一中学12",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [112.991418,28.116428, 8, 999]
        }, {
          "name": "长沙市第一中学13",
          "areacode": 111,
          "areaid": 111,
          "id": 1,
          "value": [113.694675,28.120653, 8, 999]
        }
      ]
    },
    name: '地图数据集',
    filedType: 'api'
  },
  areaId: {
    type: String,
    default: '100000',
    name: '区域代码',
    filedType: 'string'
  },
  useEchart: {
    type: Boolean,
    default: false,
    name: '使用echarts',
    filedType: 'switch'
  },
  autoDebouns: {
    type: Boolean,
    default: true,
    name: '自动更新视野',
    filedType: 'switch'
  },
  borderColor: {
    type: String,
    default: '#88d2ff',
    name: '边界颜色',
    filedType: 'color'
  },
  areaColor: {
    type: String,
    default: '#0331aa',
    name: '填充颜色',
    filedType: 'color'
  },
  areaHoverColor: {
    type: String,
    default: '#1890ff',
    name: '高亮填充颜色',
    filedType: 'color'
  },
  pointColor: {
    type: String,
    default: '#ffea92',
    name: '散点颜色',
    filedType: 'color'
  },
  useDrilldown: {
    type: Boolean,
    default: true,
    name: '点击区域下钻',
    filedType: 'switch'
  },
  useClick: {
    type: Boolean,
    default: true,
    name: '散点点击事件',
    filedType: 'switch'
  },
  pointRadius: {
    type: String,
    default: '10',
    name: '散点大小',
    filedType: 'string'
  },

  value: {
    type: Array,
    default: ['', ''],
    name: '地图数据',
    filedType: 'value',
    // 会在配置面板，指定显示条件时调用此处的值
    dataSource: {
      // 指明绑定值的数据源，比如从组件属性的data里取值，指定data即可
      from: 'data',
      // 数据源类型：string-字符串(默认) array-数组 boolean-逻辑值(为逻辑值时,from会被忽略)
      type: 'array',
      // 当type为'array时，才需要指定labelKey与valueKey，labelKey的默认值为'label'，valueKey的默认值为'value'
      labelKey: 'label',
      valueKey: 'value'
    }
  },
}
